import Phaser from "phaser";
import MainScene from "./scenes/MainScene";
import "./static/css/style.scss";

// 游戏配置
const config = {
  type: Phaser.AUTO,
  parent: "phaser-game",
  width: "100%",
  height: "100%",
  scale: {
    mode: Phaser.Scale.RESIZE,
    autoCenter: Phaser.Scale.CENTER_BOTH,
  },
  physics: {
    default: "arcade",
    arcade: {
      gravity: { y: 200 },
      debug: false,
    },
  },
  scene: [MainScene],
};

export default new Phaser.Game(config);
